import Vue from "vue"

Vue.mixin({
	methods: {
		hasAuth(perm) {
			// console.log(perm)
			var authority = this.$store.state.menus.permList
			// perm.forEach(p => {
			// 	if (authority.indexOf(p) > -1){
			// 		return true
			// 	}
			// })
			return authority.indexOf(perm) > -1
			//return false
		}
	}
})